com.supermap.mapping
Class LayerHeatmap
- java.lang.Object
-
- com.supermap.mapping.Layer
-
- com.supermap.mapping.LayerHeatmap
-
public class LayerHeatmap extends Layer
The heat map layer
-
-
Constructor Summary
Constructors Constructor and Description LayerHeatmap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AggregationFunctionType
getAggregationFun()
Gets the aggregation function applied to the aggregation fields of a heat map.Colors
getColorset()
Gets the color collectiondouble
getFuzzyDegree()
Returns the fuzzy extent of the color gradient in a heat map.ColorType
getGradientColorType()
Gets the gradient mode in a heat mapdouble
getIntensity()
Returns the color ratio (ranging from 0 to 1) of high-density pointsint
getKernelRadius()
The kernel radiusColor
getMaxColor()
The color of highly dense pointsdouble
getMaxValue()
Gets the maximum valueColor
getMinColor()
The color of low dense pointsdouble
getMinValue()
Gets the minimum valuejava.lang.String
getWeightField()
Returns the weighted fieldvoid
setAggregationFun(AggregationFunctionType type)
Sets the aggregation function applied to the aggregation fields of a heat map.void
setColorset(Colors colors)
Sets the color collectionvoid
setFuzzyDegree(double value)
Sets the fuzzy extent of the color gradient in a heat mapvoid
setGradientColorType(ColorType type)
Sets the gradient mode in a heat mapvoid
setIntensity(double value)
Sets the color ratio of high-density pointsvoid
setKernelRadius(int radius)
The kernel radiusvoid
setMaxColor(Color color)
Sets the color of highly dense pointsvoid
setMaxValue(double vlaue)
Sets the maximum valuevoid
setMinColor(Color color)
Sets the color of low dense pointsvoid
setMinValue(double value)
Sets the minimum valuevoid
setWeightField(java.lang.String field)
Sets the weighted field-
Methods inherited from class com.supermap.mapping.Layer
getAdditionalSetting, getByCaption, getCaption, getDataset, getDeduplicateThreshold, getDeduplicateTolerance, getDescription, getDisplayFilter, getIsSwipe, getLayerSettingVectorCache, getMaxVisibleScale, getMinVisibleGeometrySize, getMinVisibleScale, getName, getParentGroup, getSelection, getSymbolScale, getTheme, GetTheme, getTimeEndField, getTimeFilterEnding, getTimeFilterStarting, getTimeStartField, getTimeStepInterval, hitTest, hitTestEx, isDeduplicateEnabled, isDisposed, isEditable, isFastDrawEnabled, isSelectable, isSnapable, isSymbolScalable, IsTimeFilterEnable, isVisible, isVisibleScale, removeCache, setAdditionalSetting, setCaption, setDataset, setDeduplicateEnabled, setDeduplicateThreshold, setDeduplicateTolerance, setDescription, setDisplayFilter, setEditable, setFastDrawDataModefied, setFastDrawEnabled, setIsSwipe, setMaxVisibleScale, setMinVisibleGeometrySize, setMinVisibleScale, setOpaqueRate, setSelectable, setSnapable, setSymbolScalable, setSymbolScale, setTimeEndField, setTimeFilterEnable, setTimeFilterEnding, setTimeFilterStarting, setTimeStartField, setTimeStepInterval, setVisible, toXML
-
-
-
-
Method Detail
-
getKernelRadius
public int getKernelRadius()
The kernel radius- Returns:
- Returns the kernel radius (from 0 to 50) for density calculation. Unit: screen coordinate
-
setKernelRadius
public void setKernelRadius(int radius)
The kernel radius- Parameters:
radius
- Sets the kernel radius (from 0 to 50) for density calculation. Unit: screen coordinate
-
getMaxColor
public Color getMaxColor()
The color of highly dense points- Returns:
- Return the color of highly dense points
-
setMaxColor
public void setMaxColor(Color color)
Sets the color of highly dense points- Parameters:
color
- The color value.
-
getMinColor
public Color getMinColor()
The color of low dense points- Returns:
- Return the color of low dense points
-
setMinColor
public void setMinColor(Color color)
Sets the color of low dense points- Parameters:
color
- The color value.
-
setMaxValue
public void setMaxValue(double vlaue)
Sets the maximum value- Parameters:
vlaue
- the maximum value
-
getMaxValue
public double getMaxValue()
Gets the maximum value- Returns:
- the maximum value
-
setMinValue
public void setMinValue(double value)
Sets the minimum value- Parameters:
value
- The maximum value
-
getMinValue
public double getMinValue()
Gets the minimum value- Returns:
- the minimum value
-
setIntensity
public void setIntensity(double value)
Sets the color ratio of high-density points- Parameters:
value
- the color of high-density points (MaxColor) and the color of low-density points (MinColor) to determine the color ratio of high-density points in the color gradient. The larger the value, the higher the ratio. The value ranges from 0 to 1.
-
getIntensity
public double getIntensity()
Returns the color ratio (ranging from 0 to 1) of high-density points- Returns:
- returns the color of high-density points (MaxColor) and the color of low-density points (MinColor) to determine the color ratio of high-density points in the color gradient. The larger the value, the higher the ratio.
-
setFuzzyDegree
public void setFuzzyDegree(double value)
Sets the fuzzy extent of the color gradient in a heat map- Parameters:
value
- the fuzzy extent of the color gradient in a heat map. It ranges from 0 to 1
-
getFuzzyDegree
public double getFuzzyDegree()
Returns the fuzzy extent of the color gradient in a heat map. It ranges from 0 to 1- Returns:
- Returns the fuzzy extent of the color gradient in a heat map
-
setWeightField
public void setWeightField(java.lang.String field)
Sets the weighted field- Parameters:
field
- a weighted field. Apart from reflecting the relative density of points, a heat layer can represent point density weighted according based on a field.
-
getWeightField
public java.lang.String getWeightField()
Returns the weighted field- Returns:
- return a weighted field. Apart from reflecting the relative density of points, a heat layer can represent point density weighted according based on a field.
-
getAggregationFun
public AggregationFunctionType getAggregationFun()
Gets the aggregation function applied to the aggregation fields of a heat map.- Returns:
- Gets the aggregation function applied to the aggregation fields of a heat map.
-
setAggregationFun
public void setAggregationFun(AggregationFunctionType type)
Sets the aggregation function applied to the aggregation fields of a heat map.- Parameters:
type
- Sets the aggregation function applied to the aggregation fields of a heat map.
-
setColorset
public void setColorset(Colors colors)
Sets the color collection- Parameters:
colors
- color collection.
-
getColorset
public Colors getColorset()
Gets the color collection- Returns:
- the color collection
-
setGradientColorType
public void setGradientColorType(ColorType type)
Sets the gradient mode in a heat map- Parameters:
type
- Sets the color gradient mode in a heat map including: HSB and RGB
-
getGradientColorType
public ColorType getGradientColorType()
Gets the gradient mode in a heat map- Returns:
- Gets the color gradient mode in a heat map including: HSB and RGB
-
-